home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / prim / page.elc.z / page.elc
Emacs Compiled Lisp  |  1998-05-21  |  2.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 54 68 75 20 4a | 61 6e 20 32 32 20 31 34 |on Thu J|an 22 14|
|00000040| 3a 34 35 3a 32 31 20 31 | 39 39 38 0a 3b 3b 3b 20 |:45:21 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 78 65 | 6d 61 63 73 2d 32 30 2e |emacs/xe|macs-20.|
|00000090| 33 2f 6c 69 73 70 2f 70 | 72 69 6d 2f 70 61 67 65 |3/lisp/p|rim/page|
|000000a0| 2e 65 6c 0a 3b 3b 3b 20 | 65 6d 61 63 73 20 76 65 |.el.;;; |emacs ve|
|000000b0| 72 73 69 6f 6e 20 32 30 | 2e 33 20 22 56 61 74 69 |rsion 20|.3 "Vati|
|000000c0| 63 61 6e 20 43 69 74 79 | 22 20 58 45 6d 61 63 73 |can City|" XEmacs|
|000000d0| 20 20 4c 75 63 69 64 2e | 0a 3b 3b 3b 20 62 79 74 | Lucid.|.;;; byt|
|000000e0| 65 63 6f 6d 70 20 76 65 | 72 73 69 6f 6e 20 32 2e |ecomp ve|rsion 2.|
|000000f0| 32 35 20 58 45 6d 61 63 | 73 3b 20 32 32 2d 4d 61 |25 XEmac|s; 22-Ma|
|00000100| 72 2d 39 36 2e 0a 3b 3b | 3b 20 6f 70 74 69 6d 69 |r-96..;;|; optimi|
|00000110| 7a 61 74 69 6f 6e 20 69 | 73 20 6f 6e 2e 0a 3b 3b |zation i|s on..;;|
|00000120| 3b 20 74 68 69 73 20 66 | 69 6c 65 20 75 73 65 73 |; this f|ile uses|
|00000130| 20 6f 70 63 6f 64 65 73 | 20 77 68 69 63 68 20 64 | opcodes| which d|
|00000140| 6f 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 45 |o not ex|ist in E|
|00000150| 6d 61 63 73 20 31 39 2e | 0a 0a 28 69 66 20 28 61 |macs 19.|..(if (a|
|00000160| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 6d 61 63 |nd (boun|dp 'emac|
|00000170| 73 2d 76 65 72 73 69 6f | 6e 29 0a 09 20 28 6f 72 |s-versio|n).. (or|
|00000180| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000190| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 20 65 |poch::ve|rsion) e|
|000001a0| 70 6f 63 68 3a 3a 76 65 | 72 73 69 6f 6e 29 0a 09 |poch::ve|rsion)..|
|000001b0| 20 20 20 20 20 28 73 74 | 72 69 6e 67 2d 6c 65 73 | (st|ring-les|
|000001c0| 73 70 20 65 6d 61 63 73 | 2d 76 65 72 73 69 6f 6e |sp emacs|-version|
|000001d0| 20 22 32 30 22 29 29 29 | 0a 20 20 20 20 28 65 72 | "20")))|. (er|
|000001e0| 72 6f 72 20 22 60 70 61 | 67 65 2e 65 6c 27 20 77 |ror "`pa|ge.el' w|
|000001f0| 61 73 20 63 6f 6d 70 69 | 6c 65 64 20 66 6f 72 20 |as compi|led for |
|00000200| 45 6d 61 63 73 20 32 30 | 22 29 29 0a 0a 28 6f 72 |Emacs 20|"))..(or|
|00000210| 20 28 62 6f 75 6e 64 70 | 20 27 63 75 72 72 65 6e | (boundp| 'curren|
|00000220| 74 2d 6c 6f 61 64 2d 6c | 69 73 74 29 20 28 73 65 |t-load-l|ist) (se|
|00000230| 74 71 20 63 75 72 72 65 | 6e 74 2d 6c 6f 61 64 2d |tq curre|nt-load-|
|00000240| 6c 69 73 74 20 6e 69 6c | 29 29 0a 0a 0a 23 40 31 |list nil|))...#@1|
|00000250| 35 36 20 4d 6f 76 65 20 | 66 6f 72 77 61 72 64 20 |56 Move |forward |
|00000260| 74 6f 20 70 61 67 65 20 | 62 6f 75 6e 64 61 72 79 |to page |boundary|
|00000270| 2e 20 20 57 69 74 68 20 | 61 72 67 2c 20 72 65 70 |. With |arg, rep|
|00000280| 65 61 74 2c 20 6f 72 20 | 67 6f 20 62 61 63 6b 20 |eat, or |go back |
|00000290| 69 66 20 6e 65 67 61 74 | 69 76 65 2e 0a 41 20 70 |if negat|ive..A p|
|000002a0| 61 67 65 20 62 6f 75 6e | 64 61 72 79 20 69 73 20 |age boun|dary is |
|000002b0| 61 6e 79 20 6c 69 6e 65 | 20 77 68 6f 73 65 20 62 |any line| whose b|
|000002c0| 65 67 69 6e 6e 69 6e 67 | 20 6d 61 74 63 68 65 73 |eginning| matches|
|000002d0| 20 74 68 65 20 72 65 67 | 65 78 70 0a 60 70 61 67 | the reg|exp.`pag|
|000002e0| 65 2d 64 65 6c 69 6d 69 | 74 65 72 27 2e 1f 0a 28 |e-delimi|ter'...(|
|000002f0| 64 65 66 61 6c 69 61 73 | 20 27 66 6f 72 77 61 72 |defalias| 'forwar|
|00000300| 64 2d 70 61 67 65 20 23 | 5b 28 26 6f 70 74 69 6f |d-page #|[(&optio|
|00000310| 6e 61 6c 20 63 6f 75 6e | 74 29 20 22 08 ac 82 c1 |nal coun|t) "....|
|00000320| 10 08 c2 56 ab 99 6d ac | 96 6e ab 83 c1 75 88 c3 |...V..m.|.n...u..|
|00000330| 0c c5 c6 23 ac 83 64 62 | 88 08 53 89 10 aa 63 08 |...#..db|..S...c.|
|00000340| c2 57 ad b0 6f 3f ad ac | 8a c7 0c c5 c6 23 29 ab |.W..o?..|.....#).|
|00000350| 8a c2 95 60 55 ab 84 c2 | 94 62 88 c8 75 88 c7 0c |...`U...|.b..u...|
|00000360| c5 c6 23 ab 86 c2 95 62 | 88 aa 83 65 62 88 08 54 |..#....b|...eb..T|
|00000370| 89 10 aa 4c 87 22 20 5b | 63 6f 75 6e 74 20 31 20 |...L." [|count 1 |
|00000380| 30 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |0 re-sea|rch-forw|
|00000390| 61 72 64 20 70 61 67 65 | 2d 64 65 6c 69 6d 69 74 |ard page|-delimit|
|000003a0| 65 72 20 6e 69 6c 20 74 | 20 72 65 2d 73 65 61 72 |er nil t| re-sear|
|000003b0| 63 68 2d 62 61 63 6b 77 | 61 72 64 20 2d 31 5d 20 |ch-backw|ard -1] |
|000003c0| 35 20 28 23 24 20 2e 20 | 35 39 35 29 20 22 5f 70 |5 (#$ . |595) "_p|
|000003d0| 22 5d 29 0a 23 40 31 35 | 36 20 4d 6f 76 65 20 62 |"]).#@15|6 Move b|
|000003e0| 61 63 6b 77 61 72 64 20 | 74 6f 20 70 61 67 65 20 |ackward |to page |
|000003f0| 62 6f 75 6e 64 61 72 79 | 2e 20 20 57 69 74 68 20 |boundary|. With |
|00000400| 61 72 67 2c 20 72 65 70 | 65 61 74 2c 20 6f 72 20 |arg, rep|eat, or |
|00000410| 67 6f 20 66 77 64 20 69 | 66 20 6e 65 67 61 74 69 |go fwd i|f negati|
|00000420| 76 65 2e 0a 41 20 70 61 | 67 65 20 62 6f 75 6e 64 |ve..A pa|ge bound|
|00000430| 61 72 79 20 69 73 20 61 | 6e 79 20 6c 69 6e 65 20 |ary is a|ny line |
|00000440| 77 68 6f 73 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 |whose be|ginning |
|00000450| 6d 61 74 63 68 65 73 20 | 74 68 65 20 72 65 67 65 |matches |the rege|
|00000460| 78 70 0a 60 70 61 67 65 | 2d 64 65 6c 69 6d 69 74 |xp.`page|-delimit|
|00000470| 65 72 27 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |er'...(d|efalias |
|00000480| 27 62 61 63 6b 77 61 72 | 64 2d 70 61 67 65 20 23 |'backwar|d-page #|
|00000490| 5b 28 26 6f 70 74 69 6f | 6e 61 6c 20 63 6f 75 6e |[(&optio|nal coun|
|000004a0| 74 29 20 22 08 ac 82 c1 | 10 c2 08 5b 21 87 22 20 |t) "....|...[!." |
|000004b0| 5b 63 6f 75 6e 74 20 31 | 20 66 6f 72 77 61 72 64 |[count 1| forward|
|000004c0| 2d 70 61 67 65 5d 20 32 | 20 28 23 24 20 2e 20 39 |-page] 2| (#$ . 9|
|000004d0| 38 36 29 20 22 5f 70 22 | 5d 29 0a 23 40 31 38 32 |86) "_p"|]).#@182|
|000004e0| 20 50 75 74 20 6d 61 72 | 6b 20 61 74 20 65 6e 64 | Put mar|k at end|
|000004f0| 20 6f 66 20 70 61 67 65 | 2c 20 70 6f 69 6e 74 20 | of page|, point |
|00000500| 61 74 20 62 65 67 69 6e | 6e 69 6e 67 2e 0a 41 20 |at begin|ning..A |
|00000510| 6e 75 6d 65 72 69 63 20 | 61 72 67 20 73 70 65 63 |numeric |arg spec|
|00000520| 69 66 69 65 73 20 74 6f | 20 6d 6f 76 65 20 66 6f |ifies to| move fo|
|00000530| 72 77 61 72 64 20 6f 72 | 20 62 61 63 6b 77 61 72 |rward or| backwar|
|00000540| 64 20 62 79 20 74 68 61 | 74 20 6d 61 6e 79 20 70 |d by tha|t many p|
|00000550| 61 67 65 73 2c 0a 74 68 | 75 73 20 6d 61 72 6b 69 |ages,.th|us marki|
|00000560| 6e 67 20 61 20 70 61 67 | 65 20 6f 74 68 65 72 20 |ng a pag|e other |
|00000570| 74 68 61 6e 20 74 68 65 | 20 6f 6e 65 20 70 6f 69 |than the| one poi|
|00000580| 6e 74 20 77 61 73 20 6f | 72 69 67 69 6e 61 6c 6c |nt was o|riginall|
|00000590| 79 20 69 6e 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |y in...(|defalias|
|000005a0| 20 27 6d 61 72 6b 2d 70 | 61 67 65 20 23 5b 28 26 | 'mark-p|age #[(&|
|000005b0| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 29 20 22 08 |optional| arg) ".|
|000005c0| ab 85 c1 08 21 aa 81 c2 | 89 10 c2 56 ab 86 c3 08 |....!...|...V....|
|000005d0| 21 88 aa 8a 08 c2 57 ab | 85 c3 08 53 21 88 c3 20 |!.....W.|...S!.. |
|000005e0| 88 c4 c5 c6 89 23 88 c3 | c7 21 87 22 20 5b 61 72 |.....#..|.!." [ar|
|000005f0| 67 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |g prefix|-numeric|
|00000600| 2d 76 61 6c 75 65 20 30 | 20 66 6f 72 77 61 72 64 |-value 0| forward|
|00000610| 2d 70 61 67 65 20 70 75 | 73 68 2d 6d 61 72 6b 20 |-page pu|sh-mark |
|00000620| 6e 69 6c 20 74 20 2d 31 | 5d 20 35 20 28 23 24 20 |nil t -1|] 5 (#$ |
|00000630| 2e 20 31 32 34 39 29 20 | 22 50 22 5d 29 0a 23 40 |. 1249) |"P"]).#@|
|00000640| 31 37 39 20 4d 61 6b 65 | 20 74 65 78 74 20 6f 75 |179 Make| text ou|
|00000650| 74 73 69 64 65 20 63 75 | 72 72 65 6e 74 20 70 61 |tside cu|rrent pa|
|00000660| 67 65 20 69 6e 76 69 73 | 69 62 6c 65 2e 0a 41 20 |ge invis|ible..A |
|00000670| 6e 75 6d 65 72 69 63 20 | 61 72 67 20 73 70 65 63 |numeric |arg spec|
|00000680| 69 66 69 65 73 20 74 6f | 20 6d 6f 76 65 20 66 6f |ifies to| move fo|
|00000690| 72 77 61 72 64 20 6f 72 | 20 62 61 63 6b 77 61 72 |rward or| backwar|
|000006a0| 64 20 62 79 20 74 68 61 | 74 20 6d 61 6e 79 20 70 |d by tha|t many p|
|000006b0| 61 67 65 73 2c 0a 74 68 | 75 73 20 73 68 6f 77 69 |ages,.th|us showi|
|000006c0| 6e 67 20 61 20 70 61 67 | 65 20 6f 74 68 65 72 20 |ng a pag|e other |
|000006d0| 74 68 61 6e 20 74 68 65 | 20 6f 6e 65 20 70 6f 69 |than the| one poi|
|000006e0| 6e 74 20 77 61 73 20 6f | 72 69 67 69 6e 61 6c 6c |nt was o|riginall|
|000006f0| 79 20 69 6e 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |y in...(|defalias|
|00000700| 20 27 6e 61 72 72 6f 77 | 2d 74 6f 2d 70 61 67 65 | 'narrow|-to-page|
|00000710| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|00000720| 67 29 20 22 08 ab 85 c1 | 08 21 aa 81 c2 10 8a 7e |g) "....|.!.....~|
|00000730| 88 08 c2 56 ab 86 c3 08 | 21 88 aa 8a 08 c2 57 ab |...V....|!.....W.|
|00000740| 85 c3 08 53 21 88 c3 20 | 88 8a c2 94 62 88 c4 0d |...S!.. |....b...|
|00000750| 21 29 ab 83 c2 79 88 60 | c3 c6 21 88 6c ab 86 6f |!)...y.`|..!.l..o|
|00000760| ac 83 c7 79 88 60 7d 29 | 87 22 20 5b 61 72 67 20 |...y.`})|." [arg |
|00000770| 70 72 65 66 69 78 2d 6e | 75 6d 65 72 69 63 2d 76 |prefix-n|umeric-v|
|00000780| 61 6c 75 65 20 30 20 66 | 6f 72 77 61 72 64 2d 70 |alue 0 f|orward-p|
|00000790| 61 67 65 20 6c 6f 6f 6b | 69 6e 67 2d 61 74 20 70 |age look|ing-at p|
|000007a0| 61 67 65 2d 64 65 6c 69 | 6d 69 74 65 72 20 2d 31 |age-deli|miter -1|
|000007b0| 20 31 5d 20 33 20 28 23 | 24 20 2e 20 31 36 30 34 | 1] 3 (#|$ . 1604|
|000007c0| 29 20 22 50 22 5d 29 0a | 28 70 75 74 20 27 6e 61 |) "P"]).|(put 'na|
|000007d0| 72 72 6f 77 2d 74 6f 2d | 70 61 67 65 20 27 64 69 |rrow-to-|page 'di|
|000007e0| 73 61 62 6c 65 64 20 74 | 29 0a 23 40 38 31 20 52 |sabled t|).#@81 R|
|000007f0| 65 70 6f 72 74 20 6e 75 | 6d 62 65 72 20 6f 66 20 |eport nu|mber of |
|00000800| 6c 69 6e 65 73 20 6f 6e | 20 63 75 72 72 65 6e 74 |lines on| current|
|00000810| 20 70 61 67 65 2c 20 61 | 6e 64 20 68 6f 77 20 6d | page, a|nd how m|
|00000820| 61 6e 79 20 61 72 65 20 | 62 65 66 6f 72 65 20 6f |any are |before o|
|00000830| 72 20 61 66 74 65 72 20 | 70 6f 69 6e 74 2e 1f 0a |r after |point...|
|00000840| 28 64 65 66 61 6c 69 61 | 73 20 27 63 6f 75 6e 74 |(defalia|s 'count|
|00000850| 2d 6c 69 6e 65 73 2d 70 | 61 67 65 20 23 5b 6e 69 |-lines-p|age #[ni|
|00000860| 6c 20 22 8a 60 c0 89 89 | 89 89 19 1a 1b 1c 1d 1e |l ".`...|........|
|00000870| 06 c7 20 88 c8 79 88 c9 | 0e 5c 6e 21 ac 83 c0 7f |.. ..y..|.\n!....|
|00000880| 88 60 14 cb 20 88 60 15 | cc 0d 0c 5c 22 13 cc 0d |.`.. .`.|...\"...|
|00000890| 0e 06 5c 22 12 cc 0e 06 | 0c 5c 22 11 cd ce 0b 5c |..\"....|.\"....\|
|000008a0| 6e 09 24 2e 07 87 22 20 | 5b 6e 69 6c 20 61 66 74 |n.$..." |[nil aft|
|000008b0| 65 72 20 62 65 66 6f 72 | 65 20 74 6f 74 61 6c 20 |er befor|e total |
|000008c0| 65 6e 64 20 62 65 67 20 | 6f 70 6f 69 6e 74 20 66 |end beg |opoint f|
|000008d0| 6f 72 77 61 72 64 2d 70 | 61 67 65 20 30 20 6c 6f |orward-p|age 0 lo|
|000008e0| 6f 6b 69 6e 67 2d 61 74 | 20 70 61 67 65 2d 64 65 |oking-at| page-de|
|000008f0| 6c 69 6d 69 74 65 72 20 | 62 61 63 6b 77 61 72 64 |limiter |backward|
|00000900| 2d 70 61 67 65 20 63 6f | 75 6e 74 2d 6c 69 6e 65 |-page co|unt-line|
|00000910| 73 20 6d 65 73 73 61 67 | 65 20 22 50 61 67 65 20 |s messag|e "Page |
|00000920| 68 61 73 20 25 64 20 6c | 69 6e 65 73 20 28 25 64 |has %d l|ines (%d|
|00000930| 20 2b 20 25 64 29 22 5d | 20 36 20 28 23 24 20 2e | + %d)"]| 6 (#$ .|
|00000940| 20 32 30 33 31 29 20 22 | 5f 22 5d 29 0a 23 40 33 | 2031) "|_"]).#@3|
|00000950| 38 20 50 72 69 6e 74 20 | 70 61 67 65 20 61 6e 64 |8 Print |page and|
|00000960| 20 6c 69 6e 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 | line nu|mber of |
|00000970| 70 6f 69 6e 74 2e 1f 0a | 28 64 65 66 61 6c 69 61 |point...|(defalia|
|00000980| 73 20 27 77 68 61 74 2d | 70 61 67 65 20 23 5b 6e |s 'what-|page #[n|
|00000990| 69 6c 20 22 8c 7e 88 8a | c0 79 88 c1 60 1a 1b c1 |il ".~..|.y..`...|
|000009a0| 62 88 c4 0d 5c 6e c6 23 | ab 85 0b 54 13 aa 74 c7 |b...\n.#|...T..t.|
|000009b0| c8 0b c9 60 5c 6e 5c 22 | 54 23 2c 87 22 20 5b 30 |...`\n\"|T#,." [0|
|000009c0| 20 31 20 6f 70 6f 69 6e | 74 20 63 6f 75 6e 74 20 | 1 opoin|t count |
|000009d0| 72 65 2d 73 65 61 72 63 | 68 2d 66 6f 72 77 61 72 |re-searc|h-forwar|
|000009e0| 64 20 70 61 67 65 2d 64 | 65 6c 69 6d 69 74 65 72 |d page-d|elimiter|
|000009f0| 20 74 20 6d 65 73 73 61 | 67 65 20 22 50 61 67 65 | t messa|ge "Page|
|00000a00| 20 25 64 2c 20 6c 69 6e | 65 20 25 64 22 20 63 6f | %d, lin|e %d" co|
|00000a10| 75 6e 74 2d 6c 69 6e 65 | 73 5d 20 36 20 28 23 24 |unt-line|s] 6 (#$|
|00000a20| 20 2e 20 32 33 38 36 29 | 20 22 5f 22 5d 29 0a 28 | . 2386)| "_"]).(|
|00000a30| 70 72 6f 76 69 64 65 20 | 27 70 61 67 65 29 0a |provide |'page). |
+--------+-------------------------+-------------------------+--------+--------+